import goods from '../components/goods/goods'
import seller from '../components/seller/seller'
import ratings from '../components/ratings/ratings'

// 2. 定义路由
// 每个路由应该映射一个组件。 其中"component" 可以是
// 通过 Vue.extend() 创建的组件构造器，
// 或者，只是一个组件配置对象。
export const p = 'test'
export const routes = [
  {
    path: '/', redirect: '/goods',
  },
  {
    path: '/seller',
    component: seller,
  },
  {
    path: '/goods',
    component: goods,
  },
  {
    path: '/ratings',
    component: ratings,
  },
]
